
<html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>会议签到</title>
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link href="http://www.139931.com/index/css/onlinebooking.css?20141101" rel="stylesheet" type="text/css">
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <style>
    </style></head>

<body id="onlinebooking" class="mode_webapp">
<form action="" method="post">
    <input type="hidden" name="info[catid]" value="20">
   <input type="hidden" name="info[headimg]" value="">
<div class="cardexplain">
 
    
    <!--后台可控制是否显示-->

    <!--粉丝填写过的信息的，直接就显示名字电话，粉丝没有填写过信息的话，这里就直接留空让粉丝填写-->
    <ul class="round" id="txbd">
        <input type="hidden" name="formhash" id="formhash" value="642b5438">
        <input type="hidden" name="issub" id="issub" value="0">
        <li class="title mb"><span class="none">会议详情</span></li>

        <li class="nob">

            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="kuang">
                <tbody><tr>
                    <th>会议名称</th>
                    <td><p name="info[username]" disabled class="px" id="username"  ><?=$meet->title?></p></td>
                </tr>
                </tbody></table>
        </li>
        <li class="nob">

            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="kuang">
                <tbody><tr>
                    <th>会议地点</th>
                    <td><p name="info[username]" disabled class="px" id="username"  ><?=$meet->place?></p></td>
                </tr>
                </tbody></table>
        </li>
        <li class="nob" >

            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="kuang">
                <tbody><tr>
                    <th>会议时间</th>
                    <td><p name="info[username]" disabled class="px" id="username"  ><?= date('Y-m-d H:i',$meet->begin_time);?></p></td>
                </tr>
                </tbody></table>
        </li>

       
      
	
      
    </ul>

    <div class="footReturn">
		<input name="info[thumb]" class="px" id="thumb" value="" type="textarea"  style='display:none;' placeholder="">
        <input type="button" name="dosubmit" id="showcard" class="submit" value="确定签到">
        <br/>
        <input type="button" name="dosubmit" id="uploadziliao" class="submit" value="上报资料">
        <div class="window" id="windowcenter">
            <div id="title" class="wtitle">操作提示<span class="close" id="alertclose"></span></div>
            <div class="content">
                <div id="txt"></div>
            </div>
        </div>
    </div>





</div>
</form>

<script type="text/javascript">
$(document).ready(function () {
    var latitude = 0; // 纬度，浮点数，范围为90 ~ -90
    var longitude = 0; // 经度，浮点数，范围为180 ~ -180。
    $('#uploadziliao').click(function(){
        window.location.href="http://dangjian.e23.cn/frontend/web/site/upload";
    });
    var geturl = "http://ijinan.e23.cn/index.php?m=content&c=appcontent&a=getwxSha1&url="+encodeURIComponent(window.location.href);
        $.ajax({
            type : "get",
            url : geturl,
            dataType : "jsonp",
            jsonp: "callback",
            jsonpCallback:"success_jsonpCallback1",
            success : function(json){
                wx.config({
                    debug: false,
                    appId: json.wxappid,
                    timestamp: json.timestamp,
                    nonceStr: json.wxnonceStr,
                    signature: json.wxSha1,
                    jsApiList: ['getLocation']
                });
            },
            error:function(){
            }
        });
        wx.ready(function(){
                wx.getLocation({
                    type: 'wgs84', // 默认为wgs84的gps坐标，如果要返回直接给openLocation用的火星坐标，可传入'gcj02'
                    success: function (res) {
                        latitude = res.latitude; // 纬度，浮点数，范围为90 ~ -90
                        longitude = res.longitude; // 经度，浮点数，范围为180 ~ -180。
                      
                    }
                });
            });
    $('#showcard').click(function(){
        $.ajax({
                    url: "http://dangjian.e23.cn/frontend/web/api/sign",
                    type: "get",
                    datatype:"JSON",
                    data: {mid:<?=$meet->mid?>,uid:<?=$uid?>,latid:latitude,lonid:longitude},
                    success: function (data) {
                        //console.log(data);
                        var result=eval('(' + data + ')');
                        if(result.code==200)
                        {
                            alert('签到成功');
                        }
                        else
                        {
                            alert(result.msg);
                        }
                    },
                    error: function () {
                        alert("签到失败！");
                    }
        });

    });


})
    
</script>










</body></html>